<template>
  <div class="btn-box">
    <div class="btn back" @click="Back"></div>
    <div class="btn home" @click="Home"></div>
  </div>
</template>

<script setup>
const Back = () => {
  history.go(-1);
};

const Home = () => {
  location.href = '/';
};
</script>

<style lang="scss" scoped>
.btn-box {
  position: fixed;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  .btn {
    width: 60px;
    height: 60px;
    cursor: pointer;
  }
  .back {
    @include bgImg('../assets/btn-back.png');
  }
  .home {
    @include bgImg('../assets/btn-home.png');
  }
}
</style>
